package com.navi.loaddata.core.gpEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by ghost on 2018/3/12.
 */
public class WppTegMeasureFPK implements Serializable {
    private String prodId;
    private String glassId;
    private String jgeCnt;
    private Timestamp procEnd;
    private String et;
    private String mItem;

    @Column(name = "prod_id")
    @Id
    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId;
    }

    @Column(name = "glass_id")
    @Id
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Column(name = "jge_cnt")
    @Id
    public String getJgeCnt() {
        return jgeCnt;
    }

    public void setJgeCnt(String jgeCnt) {
        this.jgeCnt = jgeCnt;
    }

    @Column(name = "proc_end")
    @Id
    public Timestamp getProcEnd() {
        return procEnd;
    }

    public void setProcEnd(Timestamp procEnd) {
        this.procEnd = procEnd;
    }

    @Column(name = "et")
    @Id
    public String getEt() {
        return et;
    }

    public void setEt(String et) {
        this.et = et;
    }

    @Column(name = "m_item")
    @Id
    public String getmItem() {
        return mItem;
    }

    public void setmItem(String mItem) {
        this.mItem = mItem;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WppTegMeasureFPK that = (WppTegMeasureFPK) o;

        if (prodId != null ? !prodId.equals(that.prodId) : that.prodId != null) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (jgeCnt != null ? !jgeCnt.equals(that.jgeCnt) : that.jgeCnt != null) return false;
        if (procEnd != null ? !procEnd.equals(that.procEnd) : that.procEnd != null) return false;
        if (et != null ? !et.equals(that.et) : that.et != null) return false;
        if (mItem != null ? !mItem.equals(that.mItem) : that.mItem != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = prodId != null ? prodId.hashCode() : 0;
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (jgeCnt != null ? jgeCnt.hashCode() : 0);
        result = 31 * result + (procEnd != null ? procEnd.hashCode() : 0);
        result = 31 * result + (et != null ? et.hashCode() : 0);
        result = 31 * result + (mItem != null ? mItem.hashCode() : 0);
        return result;
    }
}
